package com.egg.ylt.adapter;

import android.content.Context;

import com.egg.ylt.R;
import com.yonyou.framework.library.adapter.rv.CommonAdapter;
import com.yonyou.framework.library.adapter.rv.ViewHolder;

/**
 * Created by qiuzhenhuan on 2019/1/21.
 */

public class RvSimpleAdapter extends CommonAdapter<String> {

    public RvSimpleAdapter(Context context) {
        super(context);
    }

    @Override
    protected int itemLayoutId() {
        return R.layout.item_simple;
    }

    @Override
    protected void convert(ViewHolder holder, String s, int position) {
        holder.setText(R.id.tv_item,s);
//        holder.setVisible(R.id.view_line,position != getItemCount() - 1);
    }
}
